﻿using CarAppDomain.Base;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarAppDomain.CarType.Entities
{
    /// <summary>
    /// 2. 国家表：以区域表为上级关联表，建立包含区域代码、国家代码、国家名称（中英文）等信息。
    /// </summary>
    [SugarTable("country", TableDescription = "国家表")]
    public class CountryEntity : BaseEntity
    {
        /// <summary>
        /// 所属区域Id
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = false, ColumnDescription = "所属区域")]
        public string? AreaId { get; set; }

        /// <summary>
        /// 区域中文名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 128, IsNullable = false, ColumnDescription = "国家中文名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 区域英文名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 128, IsNullable = true, ColumnDescription = "国家英文名称")]
        public string? EnglishName { get; set; }

        /// <summary>
        /// 国家代码
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 20, IsNullable = true, ColumnDescription = "国家代码")]
        public string? Code { get; set; }
    }
}
